package com.example.invoke.extend.listener;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class CommonListener implements BaseListener {

    @Override
    public byte[] handle(String serviceId, String version, byte[] requestBytes) {
        try {
            log.info(serviceId, version, new String(requestBytes, "UTF-8"));
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return new byte[0];
    }
}
